package com.example.demo.test;

public class demo2 implements Runnable{
    @Override
    public void run() {
        System.out.println("线程："+Thread.currentThread().getName());
    }


    public static void main(String[] args) {
        demo2 demo2 = new demo2();
        Thread thread = new Thread(demo2);
        thread.start();
    }
}
